import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { BaseEntity } from './base.entity';

@Entity('chat')
export default class Chat extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'user_id', comment: '用户ID' })
  userId: string;

  @Column({ name: 'friend_id', comment: '朋友ID' })
  friendId: string;

  @Column({ comment: '聊天内容' })
  content: string;
}
